<template>
  <div id="app">

    <!-- <p>黑马头条</p>
    <van-button loading type="primary" />
    <van-button loading type="primary" loading-type="spinner" />
    <van-button loading type="info" loading-text="加载中..." />

    <van-button square type="primary">方形按钮</van-button>
    <van-button round type="info">圆形按钮</van-button>
    <i class="toutiao toutiao-shouye"></i> -->
<!--    eventBus-->
<!--  {{$store.state}}-->
    <router-view />
  </div>
</template>

<script>
export default {
  methods: {
    setUserinfo (username) {
      this.userInfo.username = username
    },
    changeUserInfo () {
    //  修改vux内部的userinfo数据
    //  mutatios
      this.$store.commit('changeUser', '传智')
    }
  },
  data () {
    return {
      userInfo: {
        username: '黑马'
      }
    }
  }
}
</script>

<style lang="less"></style>
